<?php
if(!defined('DEDEINC')) exit('Request Error!');
/**
 *院校信息 Model
 *by zsh
 */
class mcollegeinfo_detail extends Model{

    function detail_query($sql = ""){
        $this->dsql->SetQuery($sql);
        $this->dsql->Execute();
    }

    function detail_get_one($tableName = "", $where = ""){
        return $this->dsql->GetOne("select * from " . $tableName . " where " . $where);
    }

    function detail_get_list($tableName = "", $where = ""){
        $sql = "select * from " . $tableName . " where " . $where;
        $this->dsql->SetQuery($sql);
        $this->dsql->Execute();

        $data  = array();
        while($row = $this->dsql->GetArray()){
            $data[] = $row;
        }
        return $data;

    }

}



 ?>